package com.woniuxy.light_smart.service.imp;

import com.woniuxy.light_smart.entity.LightType;
import com.woniuxy.light_smart.mapper.LightTypeMapper;
import com.woniuxy.light_smart.service.LightTypeService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class LightTypeServiceImpl implements LightTypeService {
    @Resource
    private LightTypeMapper lightTypeMapper;
    @Override
    public int deleteByPrimaryKey(Long id) {
        return lightTypeMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insertSelective(LightType record) {
        return lightTypeMapper.insertSelective(record);
    }

    @Override
    public LightType selectByPrimaryKey(Long id) {
        return lightTypeMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(LightType record) {
        return lightTypeMapper.updateByPrimaryKey(record);
    }
}
